public class StudentCourseTest {
    public static void main(String[] args) {
 
        Course course1 = new Course(1, "Java 程序设计", "教学楼A", "周一8：00", null);
        Course course2 = new Course(2, "高等数学A", "教学楼B", "周三1：30", null);

        Teacher teacher1 = new Teacher(101, "李华", "男", course1);
        Teacher teacher2 = new Teacher(102, "王明明", "女", course2);

        course1.teacher = teacher1;
        course2.teacher = teacher2;

        Student student1 = new Student(201, "胡图图", "男");
        Student student2 = new Student(202, "张小丽", "女");
        Student student3 = new Student(203, "白婷婷", "女");
        Student student4 = new Student(204, "王小新", "男");

        System.out.println(teacher1.name + " 讲授课程：" + teacher1.course.name);
        System.out.println(teacher2.name + " 讲授课程：" + teacher2.course.name);

        student1.selectCourse(course1);
        student1.selectCourse(course2);
        student2.selectCourse(course1);
        student3.selectCourse(course2);


        student1.dropCourse(course2);
     
        student1.printCourseSchedule();
        student2.printCourseSchedule();
        student3.printCourseSchedule();
        student4.printCourseSchedule();
    }
}
